#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
char* my_strncat(char* arr,const char* arr2,size_t sz)
{
	char* cmp = arr;
	while (*++arr) {
		;
	}
	for (int n = 0; n < sz; n++)
	{
		if (*arr2 != '\0')
			*arr++ = *arr2++;
		else
		{
			*arr = *arr2;
			return cmp;
		}
	}
	return cmp;
}
int main()
{
	char arr[20] = "abcd";
	char arr2[] = "efgh";
	printf("%s", my_strncat(arr, arr2, 8));
}